<style type="text/css">
	.mr10 {
    margin-right: 10px;
  }
  .select_style {
    width: 150px;
    margin-right: 5px;
  }
</style>
<div class="modal-header">
  <h4 class="modal-title">配送站点信息</h4>
</div>
<div class="modal-body">
  <form name="form" class="form-horizontal ng-pristine ng-valid-required">
    <!-- <div class="form-group">
      <label class="col-lg-3 control-label">头像</label>
      <div class="col-sm-3 col-xs-12">
        <img ng-src="{{placeobj.img}}" width="250" height="150" ng-model="placeobj.img">
        <input type="file" nv-file-select uploader="baseinfo.imageshow.img" />
        <br>
        <ul class="list-group">
            <li class="list-group-item" 
            ng-repeat="item in baseinfo.imageshow.img.queue">
                文件名: <span ng-bind="item.file.name"></span>
                <button type="button" class="btn btn-default btn-xs"  ng-click="item.upload()"><span class="glyphicon glyphicon-upload"></span> 上传</button>
                <div class="progress mt10">
                    <div class="progress-bar" role="progressbar" ng-style="{ 'width': baseinfo.imageshow.img.progress + '%' }"></div>
                </div>
            </li>
        </ul>
      </div>
    </div> -->
    <div class="form-group">
      <label class="col-lg-3 control-label">站点名称</label>
      <div class="col-lg-7">
        <input type="text" class="form-control" ng-model="siteInfo.title">
      </div>
    </div>
    <div class="form-group">
      <label class="col-lg-3 control-label">地址</label>
      <div class="col-lg-7">
        <div class="fl">
          <ui-select ng-model="siteInfo.province" theme="bootstrap" class="select_style" ng-change="getCityList(siteInfo.province, 'citylist')">
            <ui-select-match placeholder="省">{{$select.selected.name}}</ui-select-match>
            <ui-select-choices repeat="item in provincelist | filter: $select.search">
              <span ng-bind-html="item.name | highlight: $select.search"></span>
            </ui-select-choices>
          </ui-select>
        </div>
        <div class="fl">
          <ui-select ng-model="siteInfo.city" theme="bootstrap" class="select_style">
            <ui-select-match placeholder="市">{{$select.selected.name}}</ui-select-match>
            <ui-select-choices repeat="item in citylist | filter: $select.search">
              <span ng-bind-html="item.name | highlight: $select.search"></span>
            </ui-select-choices>
          </ui-select>
        </div>
      </div>
    </div>
    <div class="form-group">
      <label class="col-lg-3 control-label">详细地址</label>
      <div class="col-lg-7">
        <textarea class="form-control" rows="2" ng-model="siteInfo.address"></textarea>
      </div>
    </div>
    <div class="form-group">
      <label class="col-lg-3 control-label">负责人</label>
      <div class="col-lg-7">
        <input type="text" class="form-control" ng-model="siteInfo.contacts_name">
      </div>
    </div>
    <div class="form-group">
      <label class="col-lg-3 control-label">联系方式</label>
      <div class="col-lg-7">
        <input type="text" class="form-control" ng-model="siteInfo.mobile">
      </div>
    </div>
    <div class="form-group">
      <label class="col-lg-3 control-label">坐标经度</label>
      <div class="col-lg-4">
        <input type="text" class="form-control" ng-model="siteInfo.longitude">
      </div>
    </div>
    <div class="form-group">
      <label class="col-lg-3 control-label">坐标纬度</label>
      <div class="col-lg-4">
        <input type="text" class="form-control" ng-model="siteInfo.latitude">
      </div>
    </div>
    <div class="form-group">
      <label class="col-lg-3 control-label">营业时间</label>
      <div class="col-lg-7">
        <textarea class="form-control" rows="2" ng-model="siteInfo.open_time" 
        placeholder="周一至周日 8:00-17:00" ng-focus="siteInfo.open_time='周一至周日 8:00-17:00'"></textarea>
      </div>
    </div>
    <!-- <div class="form-group">
      <div class="col-lg-9 col-lg-offset-2">
        <p class="form-control-static fl mr10">经度:</p>
        <div class="fl mr10">
          <input type="text" class="form-control" ng-model="siteInfo.longitude">
        </div>
        <p class="form-control-static fl mr10">纬度:</p>
        <div class="fl mr10">
          <input type="text" class="form-control" ng-model="siteInfo.latitude">
        </div>
      </div>
    </div> -->
    <div class="form-group">
      <label class="col-lg-3 control-label">是否启用</label>
      <div class="col-lg-5">
        <div class="radio">
          <label class="i-checks">
            <input type="radio" name="-_-" ng-model="siteInfo.status" value="1"><i></i> 启用
          </label>
          <label class="i-checks" style="margin-left: 20px">
            <input type="radio" name="-_-" ng-model="siteInfo.status" value="0"><i></i> 停用
          </label>
        </div>
      </div>
    </div>
  </form>
</div>
<div class="modal-footer">
  <button class="btn btn-success" type="button" ng-click="ok()">确定</button>
  <button class="btn btn-danger" type="button" ng-click="cancel()">取消</button>
</div>
